package com.auxgroup.smarthome.controller;

import java.util.Comparator;
import java.util.Map;

/**
 * Map 按Value值 倒序排序
 * @Author: laiqiuhua.
 * @Date: 2017/9/26 10:57.
 */

class MapValueDescComparator implements Comparator<Map.Entry<String, Integer>> {

    @Override
    public int compare(Map.Entry<String, Integer> me1, Map.Entry<String, Integer> me2) {

        return me2.getValue().compareTo(me1.getValue());
    }
}
